import sys; input = sys.stdin.readline from math import * from collections import Counter for tc in range(int(input())): m = int(input()); c = [*map(int, input().split())]; n, t = map(int, input().split()) ans = 0; tot = factorial(m)//(factorial(n)*factorial(m-n)) c1, c2 = c[:m//2], c[m//2:]; h1, h2 = Counter(), Counter() for bm in range(1<